#include<stdio.h>
#include<math.h>
main()
{
int a[10],b[10],i,x,y,x0,x1,x2,x3,y1,y2,y3;
printf("The Question is \n");
    for(i=0;i<3;i++)
    {
        printf("Enter the value of x%d=",i);
        scanf("%d",&a[i]);
    
        printf("Enter the value of y%d=",i);
        scanf("%d",&b[i]);
   }
y=(y0 * (((x-x1) * (x-x2))/((x0-x1) * (x0-x2)))+y1 * (((x-x0) * (x-x2))/((x1-x0) * (x1-x2)))+y2 * (((x1-x0) * (x1-x2))/((x2-x0) * (x2-x0))));
printf("The result is y=%d",y);
}

